import time
def log_message(message='test'):
  print("=" * 20 + str(message) + "=" * 20)

# 记录某函数的执行时间
def record_run_time(function, arg=None):
  start_time = time.time()
  if arg != None:
    function(**arg)
  else:
    function()
  end_time = time.time()
  execution_time = end_time - start_time
  hours, remainder = divmod(execution_time, 3600)
  minutes, seconds = divmod(remainder, 60)
  log_message(f"执行时间: {int(hours)}小时 {int(minutes)}分钟 {seconds:.2f}秒")

